package com.zhouheng.module.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import com.zhouheng.module.entity.SysUser;

/**
 * 用户dao层
 *
 * @author 周恒
 * @date 20200121 09:58:19
 * @since v1.0
 */
@Mapper
public interface SysUserMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    SysUser findByUsername(@Param("username") String username);

    List<SysUser> findAll();

    List<String> findMenuCodeByUserName(String userName);

}